<template>
  <!--dddd  -->
  <van-nav-bar
    title="标题"
    left-text="返回"
    right-text="按钮"
    left-arrow
    @click-left="onClickLeft"
    @click-right="onClickRight" />
</template>

<script setup lang="ts">
import { showToast } from 'vant';

const onClickLeft = () => history.back();
const onClickRight = () => showToast('按钮');
</script>

<style lang="scss" scoped>
::v-deep(.van-nav-bar__text) {
  color: yellow;
}
// :deep(.van-nav-bar__text) {
//   color: yellow
// }
</style>
